#include <iostream>

using namespace std;

int my_abs(int val) { return val >= 0 ? val : -val; }

int main() {
    cout << my_abs(-1) << endl;
    cout << my_abs(0) << endl;
    cout << my_abs(1) << endl;
    return 0;
}